<div style="margin:0px auto;">
    <h2 style="text-align:center">{titlePageEditor}</h2>
    
    <form id="frm_editor" name="frm_editor"  method="post" action="" enctype="multipart/form-data">
    <table class="tbl_editor" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td style="width:150px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{lbl_titlenew}</td>
                <td><input class="txt_input" id="txt_titlenew" name="txt_titlenew" type="text" value="{txt_newValue}" /></td>
            </tr>

            <tr></tr>
                <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{lbl_prantCat}</td>
                <td><select class="cb_select" id="cb_select" name="cb_select">
                [OPEN htmlCat]
                	[LOOP category]
                		<option {cell_selected} value="{cell_ID}"> {cell_Value} </option>
                	[/LOOP category]
                [CLOSE htmlCat]
                </select></td>
            </tr>

            <tr>
                <td colspan="2">
                <textarea id="txt_textarea" name="txt_textarea">{txt_textarea}</textarea>
                </td>
            </tr>
			<!-- SEO -->
            <tr>
                <td style="text-align:center"><input onclick="getKeySeo('txt_titlenew','txt_textarea');" type="button" id="createSeo" name="createSeo" value="{CreateSeo}" /></td>
            </tr>
            <tr>
                <td><strong>{lbl_Create_Seo_header}</strong></td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>{lbl_seo_key}</td>
                <td><input class="txt_input" onkeyup="countleng('txt_seo_key')" maxlength="255" id="txt_seo_key" name="txt_seo_key" type="text" value="{val_seo_key}" />&nbsp;<span id="txt_seo_key_leng"></span>&nbsp;{250}</td>
            </tr>
            <tr>
                <td>{lbl_title_page}</td>
                <td><input class="txt_input" onkeyup="countleng('txt_title_page')" maxlength="100" id="txt_title_page" name="txt_title_page" type="text" value="{val_title_page}" />&nbsp;<span id="txt_title_page_leng"></span>&nbsp;{100}</td>
            </tr>
            <tr>
                <td>{lbl_keywords}</td>
                <td><textarea class="txt_input" id="txt_keywords" onkeyup="countleng('txt_keywords')" style="height:100px" name="txt_keywords">{val_keywords}</textarea>&nbsp;<span id="txt_keywords_leng"></span>&nbsp;{200}</td>
            </tr>
            <tr>
                <td>{lbl_description}</td>
                <td><textarea class="txt_input" onkeyup="countleng('txt_description')" maxlength="200" style="height:100px" id="txt_description" name="txt_description" type="text">{val_description}</textarea>&nbsp;<span id="txt_description_leng"></span>&nbsp;{200}</td>
            </tr>
            
            <tr>
                <td><strong>{lbl_Create_Seo_footer}</strong></td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>{lbl_seo_h1}</td>
                <td><input class="txt_input" onkeyup="countleng('txt_seo_h1')" maxlength="100" id="txt_seo_h1" name="txt_seo_h1" type="text" value="{val_seo_h1}" />&nbsp;<span id="txt_seo_h1_leng"></span>&nbsp;{100}</td>
            </tr>
            <tr>
                <td>{lbl_seo_h2}</td>
                <td><input class="txt_input" onkeyup="countleng('txt_seo_h2')" maxlength="150" id="txt_seo_h2" name="txt_seo_h2" type="text" value="{val_seo_h2}" />&nbsp;<span id="txt_seo_h2_leng"></span>&nbsp;{150}</td>
            </tr>
            <tr>
                <td>{lbl_seo_p}</td>
                <td><textarea class="txt_input" onkeyup="countleng('txt_seo_p')" maxlength="1000" style="height:100px" id="txt_seo_p" name="txt_seo_p" type="text">{val_seo_p}</textarea>&nbsp;<span id="txt_seo_p_leng"></span>&nbsp;{200}</td>
            </tr>
            <!--// SEO -->
            <tr>
                <td colspan="2" style="text-align:center; padding-top:15px;">
                	<input id="txt_seo_key_hi" name="txt_seo_key_hi" type="hidden" value="{val_seo_key}" />
                	<input class="clBut"  value=" {save} "  type="button" onclick="submitEditor();" />
                    <input id="ID" name="ID"  value="{valID}"  type="hidden" />
                	<input class="clBut" type="button"  value=" {cancel} "  onclick="window.parent.hs.close()" />
           			<input id="acnew" name="acnew" type="hidden"  value="{acnew}"  />   
                </td>
            </tr>
    </table>
    </form>
</div>
<script src="{url_base}templates/admin/defaults/js/ckeditor/ckeditor.js" type="text/javascript"></script>
<script src="{url_base}templates/admin/defaults/js/ckfinder/ckfinder.js" type="text/javascript"></script>
<script type="text/javascript">
		$(document).ready(function() {
        
			CKEDITOR.replace('txt_textarea',
			{
				customConfig : '{url_base}templates/admin/defaults/js/ckeditor/config.js',
				filebrowserBrowseUrl:'{url_base}templates/admin/defaults/js/ckfinder/ckfinder.html?Type=Files',
				filebrowserImageBrowseUrl:'{url_base}templates/admin/defaults/js/ckfinder/ckfinder.html?Type=Images',
				filebrowserFlashBrowseUrl:'{url_base}templates/admin/defaults/js/ckfinder/ckfinder.html?Type=Flash',
				filebrowserUploadUrl:'{url_base}templates/admin/defaults/js/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
				filebrowserImageUploadUrl:'{url_base}templates/admin/defaults/js/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
				filebrowserFlashUploadUrl:'{url_base}templates/admin/defaults/js/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'
			});
			
			CKEDITOR.replace('txt_keywords',
			{
				toolbar : 'Basic',
				customConfig : '{url_base}templates/admin/defaults/js/ckeditor/config.js',
			});
			
		});
</script>
